<?php
TImport('hotel');
TImport('tour');

if($html->countUrl==1)
{
    $locationhtml   = buildTableLocation($html->urlRoot);    
}
else if($html->getContent("type")=="map")
{
    
}
else
{     
    $where          = $html->getContent('cWhere',true);
    $when           = $html->getContent('cWhen',true);
    $Highlights     = $html->getContent('cHighlights',true);
    
    $QuickFacts     = $html->getContent('cQuickFacts',true);
    $PracticalTips  = $html->getContent('cPracticalTips',true);
    
    $Visa           = $html->getContent('cVisa',true);
    $TravelTips     = $html->getContent('cTravelTips',true);
    $FAQs           = $html->getContent('cFAQs',true);
    
    $photos         = ListPhotoLocation($html->getId());
    $videos         = ListVideoLocation($html->getId());
    $otherdestinations= ListOtherDestinations($html->getId());
    $hasparent      = ($html->countUrl>=3)? false: true;
    $hotels         = ListHotelLocation($html->getId(),$hasparent);
    
    $tours          = ListTourByLocation($html->getId());
}

?>